/// 当前页结果集
class BackendUserPageReponseDto {
  /// 用户ID
  final int? id;
  /// 用户名
  final String? userName;
  /// 密码
  final String? password;
  /// 角色ID
  final String? roleId;
  /// 角色名称
  final String? roleName;
  /// 邮箱
  final String? email;
  /// 启用状态，1：正常，0：停用
  final int? status;
  /// 创建时间
  final String? createTime;
  /// 是否内置账号：0否 1是，默认0
  final int? buildin;
  /// 账户冻结状态，1-已冻结，0-未冻结
  final int? frozen;

  BackendUserPageReponseDto({
    this.id,
    this.userName,
    this.password,
    this.roleId,
    this.roleName,
    this.email,
    this.status,
    this.createTime,
    this.buildin,
    this.frozen,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (id != null) data['id'] = id;
    if (userName != null) data['userName'] = userName;
    if (password != null) data['password'] = password;
    if (roleId != null) data['roleId'] = roleId;
    if (roleName != null) data['roleName'] = roleName;
    if (email != null) data['email'] = email;
    if (status != null) data['status'] = status;
    if (createTime != null) data['createTime'] = createTime;
    if (buildin != null) data['buildin'] = buildin;
    if (frozen != null) data['frozen'] = frozen;
    return data;
  }

  factory BackendUserPageReponseDto.fromJson(Map<String, dynamic> json) {
    return BackendUserPageReponseDto(
      id: json['id'],
      userName: json['userName'],
      password: json['password'],
      roleId: json['roleId'],
      roleName: json['roleName'],
      email: json['email'],
      status: json['status'],
      createTime: json['createTime'],
      buildin: json['buildin'],
      frozen: json['frozen'],
    );
  }
}